const mutations = {
    CHANGELOGIN (state, userdata) {
        // 修改token，并将token存入localStorage
        localStorage.removeItem('Authorization')
        state.Authorization = userdata.Authorization;
        localStorage.setItem('Authorization', userdata.Authorization);
        localStorage.removeItem('nickName')
        state.nickName = userdata.nickName;
        localStorage.setItem('nickName', userdata.nickName);
      },
      LOGOUT(state){
          state.Authorization =''
          localStorage.removeItem('Authorization')
          state.nickName = ''
        localStorage.removeItem('nickName');
      }
      
}


export default mutations
